package com.imooc2.designPatterns.adaptor.service.impl;

import java.util.HashMap;
import java.util.Map;

/**
 * 源接口
 */
public class OldServiceImpl {

    public Map<String,String> oldMethod(Map<String,String> param) {
        System.out.println("旧的接口实现:"+param.get("test"));
        // 旧的接口实现
        Map<String,String> map = new HashMap<>();
        //模拟查询数据接收的是 map
        map.put("test","测试结果");
        return map;
    }

}
